<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <th:block th:include="include :: header('修改品牌')"/>
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-brand-edit" th:object="${brand}">
        <input id="brandId" name="brandId" th:field="*{brandId}" type="hidden">
        <div class="form-group">
            <label class="col-sm-3 control-label">品牌名称：</label>
            <div class="col-sm-8">
                <input id="brandName" name="brandName" th:field="*{brandName}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">品牌网址：</label>
            <div class="col-sm-8">
                <input id="brandUrl" name="brandUrl" th:field="*{brandUrl}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">品牌介绍：</label>
            <div class="col-sm-8">
                <input id="brandDesc" name="brandDesc" th:field="*{brandDesc}" class="form-control" type="text">
            </div>
        </div>
    </form>
</div>
<div th:include="include::footer"></div>
<script type="text/javascript">
    var prefix = ctx + "goods/brand";
    $("#form-brand-edit").validate({
        rules: {
            xxxx: {
                required: true,
            },
        },
        focusCleanup: true
    });

    function submitHandler() {
        if ($.validate.form()) {
            $.operate.save(prefix + "/edit", $('#form-brand-edit').serialize());
        }
    }
</script>
</body>
</html>
